<?php

require FCPATH . '/application/controllers/frontend.php';

class Contact extends Frontend {

    public function __construct() {
	parent::__construct();
	$this->load->model('contact_model','model');
    }
 
    public function index(){
	$this->load_css('frontend_contact_index');
	$this->load_js('frontend_contact_index');
	$lang = $this->get_language();
	$columns = array(
	    array('title_'.$lang,'title'),
	    array('address_'.$lang, 'address'),
	    'tel','fax','qq','email',
	    array('n.name','map_name')
	);
	
	$this->rend('contact_index',array(
	    'records' => $this->model->records($columns)
	));
    }
    
    public function show(){
	$this->load_css('frontend_news_show');
	$this->load_js(array('lib','frontend_news_show'));
	$this->rend('news_show');
    }
}